package com.ytjj.qmyx.admin.eunm;


import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

@Getter
public enum PlatformEnums {
    h5("h5"),
    android("android"),
    ios("ios"),
    weapp("weapp")
    ;

    private String platform;

    PlatformEnums(String platform) {
        this.platform = platform;
    }

    public static List<String> getPlatformList() {
        PlatformEnums[] values = PlatformEnums.values();
        List<String> platformList = new ArrayList<>();
        for (PlatformEnums value : values) {
            platformList.add(value.getPlatform());
        }
        return platformList;
    }
}
